home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / MacHacksBug / Python 1.5.2c1 / Demo / pdist / mac.py < prev    next >
Encoding:
Text File  |  2000-06-23  |  271 b   |  20 lines

  1. import sys
  2. import string
  3. import rcvs
  4.  
  5. def main():
  6.     while 1:
  7.         try:
  8.             line = raw_input('$ ')
  9.         except EOFError:
  10.             break
  11.         words = string.split(line)
  12.         if not words:
  13.             continue
  14.         if words[0] != 'rcvs':
  15.             words.insert(0, 'rcvs')
  16.         sys.argv = words
  17.         rcvs.main()
  18.  
  19. main()
  20.